<?php


namespace app\model;


use think\Model;

class User extends Model
{
    public function getOneData($where)
    {
        $data = $this
            ->where($where)
            ->find();
        return empty($data) ? $data : $data->toArray();
}
}